<%- include header.ejs %>
<div >
    <div style="margin-left: 10%;margin-right: 10%;min-height: 300px">
        <div style="background-color: white;height: 50px">
            <div style="height: 50px;background-color: #8c0f13;width: 100px;text-align:center;margin-left: 50px;color: white;font-size: 18px;line-height: 50px">人才风采</div>
        </div>
        <div style="margin-top: 50px;padding-left: 50px">
            <% results.forEach(function(data,index){%>
            <li style="margin-bottom: 10px;">
                <div style="float: left;margin-right: 20px;"><img src="<%=url+data.PersonPre_Picpath.split('~')[1]%>" style="width: 60px;height: 65px"></div>
                <div style="line-height: 40px;"><p style="font-size: 15px;font-family: '微软雅黑';height: 25px;">
                        <a href="<%=url+data.PersonPre_Filepath.split('~')[1]%>" target="_blank"><%=data.PersonPre_Name.trim().length>5?data.PersonPre_Name.substr(0,5)+'···':data.PersonPre_Name%></a></p><p><%=data.PersonPre_Introduce.trim().length>10?data.PersonPre_Introduce.substr(0,10)+'···':data.PersonPre_Introduce%></p>
                </div>
            </li>
            <%})%>
        </div>
        <div style="text-align: center;margin-top: 50px">
            <%if(page.totalPage!=0&&page.curPage<=page.totalPage){%>
            <b  style="margin-left: 20%;font-size: 13px;float:left;border-radius: 20px;border: solid <%if(page.curPage==1){%>#979797<%}else{%>#c8656f<%}%> 2px;width: 100px;padding: 2px"><a style="cursor: pointer;color:<%if(page.curPage==1){%>#979797"<%}else{%>#c8656f" onclick="forPage(-1)"<%}%>><上一页</a></b>
            <b  style="margin-left:40%;font-size: 13px;float:left;border-radius: 20px;border: solid <%if(page.curPage!=page.totalPage){%>#c8656f<%}else{%>#979797<%}%> 2px;width: 100px;padding: 2px"><a style="cursor: pointer;color:<%if(page.curPage!=page.totalPage){%>#c8656f" onclick="forPage(1)"<%}else{%>#979797"<%}%>>下一页></a></b>
            <%}else{%>
            <span style="font-size: 20px">没有找到相关数据</span>
            <%}%>
        </div>
    </div>
</div>


<%- include footer.ejs %>
<script>
    function forPage(num){
        var curPage=<%=page.curPage%>;
        var totalPage=<%=page.totalPage%>
                window.location.href=window.location.href.split('?')[0]+'?page='+(curPage+num)

    }
</script>